QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Directional Light Data Structure

You use a directional light data structure to get or set information about a directional light source. A directional light data structure is defined by the TQ3DirectionalLightData data type.

typedef struct TQ3DirectionalLightData {
    TQ3LightData                        lightData;
    TQ3Boolean                          castsShadows;
    TQ3Vector3D                         direction;
} TQ3DirectionalLightData;
lightData
A light data structure specifying basic information about the directional light.
castsShadows
A Boolean value that indicates whether the directional light casts shadows ( kQ3True ) or not ( kQ3False ).
direction
The direction of the directional light. Note that the direction is defined as a world-space vector away from the light source. This vector does not need to be normalized, but its length must be greater than 0.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |